package com.world.common.pojo;


import com.world.common.enums.HttpResultStatus;

import java.io.Serializable;

public class ResultResponseWrap<T> implements Serializable {
    private static final long serialVersionUID = -3101075018265694443L;
    private String code;//状态码
    private String msg;//处理消息
    private T data;

    public boolean isSuccess(){
        return HttpResultStatus.SUCCESS.getCode().equals(code);
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}